#include "LED_Task.h"
#include "FreeRTOS.h"
#include "task.h"
#include "usart.h"

#include "can.h"
#include "usbd_cdc.h"
#include "usbd_cdc_if.h"

//CAN_TxHeaderTypeDef Can2_tx_message;
//uint8_t Can2_send_data[8]={0xff,0xaa,0xbb,0xff,0xff,0xaa,0xbb,0xff};

//static void CAN2_Transmit()
//{
//	uint32_t send_mail_box;
//	Can2_tx_message.StdId = 14;
//	Can2_tx_message.IDE = CAN_ID_STD;
//	Can2_tx_message.RTR = CAN_RTR_DATA;
//	Can2_tx_message.DLC = 0x08;

//	HAL_CAN_AddTxMessage(&hcan2, &Can2_tx_message, Can2_send_data, &send_mail_box);
//}



void LED_Task(void const * argument)
{
	TIM3->CCR1=1000;
	
	while(1)
	{
		HAL_GPIO_TogglePin(GPIOH,GPIO_PIN_10);
		vTaskDelay(100);
	}
}
